var app = angular.module('conversionTool', []);

app.controller('operationDetailCtrl', [ '$scope', '$http', function($scope, $http) {

	$scope.setDataAdaptor = function(id) {
		$scope.dataAdaptorId = id;
	}

	$scope.setConnectionId = function(id) {
		$scope.connectionId = id;
	}

	$scope.viewMapping = function() {
		 
		if ($scope.operationId != '') {
			window.location = "viewOperationMapping?operationId=" + $scope.operationId;
		} else {
			
			
			//document.getElementById("operationDetialForm").submit();
		}

	}

} ]);